import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
// import 'vant/es/toast/style/index';
// import 'vant/es/image-preview/style/index';
// import 'vant/es/dialog/style/index';
import 'amfe-flexible/index.js';
import CommonComponent from './components/index';
// import '../public/font-icons/iconfont.js';
import './style/main.less';
import 'vant/es/notify/style';
import 'vant/es/dialog/style';
import jweixin from 'weixin-js-sdk'
// import './lib/vconsole';
const app = createApp(App);
app.use(store);
app.config.globalProperties.$wx = jweixin
app.use(router);
app.use(CommonComponent);
// 路由准备完毕再挂载
router.isReady().then(() => {
  app.mount('#app');
});